<template>
  <div class="main">
    <el-aside width="12%">
      <el-menu :default-active="nowPath" class="el-menu-vertical-demo" :router="true">
        <el-menu-item index="/homeframe/users/list">
          <i class="el-icon-eleme"></i>
          <span slot="title" id="default">用户列表</span>
        </el-menu-item>
        <el-menu-item index="/homeframe/users/power">
          <i class="el-icon-picture-outline-round"></i>
          <span slot="title">购买力筛选</span>
        </el-menu-item>
        <el-menu-item index="/homeframe/users/label">
          <i class="el-icon-help"></i>
          <span slot="title">用户标签</span>
        </el-menu-item>
      </el-menu>
    </el-aside>
    <el-main>
      <router-view />
    </el-main>
  </div>
</template>
<script>
export default {
  data() {
    return {
      nowPath: "/homeframe/users/list",
    };
  },
  mounted() {
    document.getElementById('default').click();
  }
};
</script>